package com.edu.zut.cs.controller;

import com.edu.zut.cs.pojo.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {

    @PostMapping("")
    @ApiOperation(value = "测试方法")
    public Result hello(){
        Result result = new Result();
        result.setCode("200");
        result.setMsg("成功");
        result.setData(1);
        return result;
    }
}
